package com.ranjiaqi.function;

import java.util.function.Function;

/**
 * @ClassName Function
 * @Description TODO
 * @Author hp
 * @Date 2021/7/5 16:19
 * @Version 1.0
 **/
public class FunctionTest {
    public static void main(String[] args) {
        String str1 = "123";
        function(str ->Integer.parseInt(str),str1);
    }
    public static Integer function(Function<String,Integer> function,String str){
        return function.apply(str);
    }
}
